package com.cqhfan.core.utils;

/**
 * @author 眭传洪
 * @create 2025-07-28 2:48
 */
public class UuidContextHolder {

    private static final ThreadLocal<String> TL = new ThreadLocal<>();

    public static void setUuid(String userId) {
        TL.set(userId);
    }

    public static void removeUuid() {
        TL.remove();
    }

    public static String getUuid() {
        return TL.get();
    }

}
